/**
 * @filename:SwitchOrderEveryDayPromotions 2020年06月11日
 * @project hotel-switch  V1.0
 * Copyright(c) 2020 Zhang·JZ Co. Ltd.
 * All right reserved.
 */
package hotel.switchs.oversea.api.entity.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import hotel.base.oversea.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @Description:TODO(订单每日优惠信息 实体类)
 *
 * @version: V1.0
 * @author: Zhang·JZ
 *
 */
@Data
@Table(name = "switch_order_every_day_promotions")
public class SwitchOrderEveryDayPromotions extends BaseEntity {

	private static final long serialVersionUID = 1591855330494L;


	@ApiModelProperty(name = "pId" , value = "对应携程订单信息主键id")
	private String pId;


	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "effectDate" , value = "价格日期")
	private Date effectDate;


	@ApiModelProperty(name = "promotionType" , value = "优惠类型")
	private String promotionType;


	@ApiModelProperty(name = "beforePromotePrice" , value = "折前金额")
	private BigDecimal beforePromotePrice;


	@ApiModelProperty(name = "afterPromotePrice" , value = "折后金额")
	private BigDecimal afterPromotePrice;


	@ApiModelProperty(name = "promotePrice" , value = "折扣金额")
	private BigDecimal promotePrice;


	@ApiModelProperty(name = "currency" , value = "币种")
	private String currency;


}
